//
//  FirstNavigationView.m
//  7.13苏宁框架
//
//  Created by mini on 15/7/17.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import "FirstNavigationView.h"

@implementation FirstNavigationView


-(instancetype)initWithFrame:(CGRect)frame
{
        self.frame = frame;
        self = [[[NSBundle mainBundle]loadNibNamed:@"FirstNavigationView" owner:nil options:nil]lastObject];
    return self;
}
-(void)awakeFromNib
{
    UIImageView *imgView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"icon_search_normal"]];
    self.textView.leftView = imgView;
    self.textView.leftViewMode = UITextFieldViewModeAlways;
    UIImageView *imgView2 = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"homeSearchTool_voiceIcon"]];
    self.textView.rightView = imgView2;
    self.textView.rightViewMode = UITextFieldViewModeAlways;
    self.textView.placeholder = @"清凉不止一点点";
    self.textView.delegate = self;
}

- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    if (textField==_textView) {
        [textField resignFirstResponder];
    }
    return YES;
}

- (IBAction)saoma {
}
@end
